#ifndef DOKER_H
#define DOKER_H

namespace Doker
{
    const int space = 5; // mm
    const int defaultPageWidth = 210; // mm
    const int defaultPageHeight = 297; // mm
    const int defaultTextHeight = 5; // mm
    const qreal pixelFactor = 1000.0;
}

static inline int toPixels(qreal units)
{
    return qRound(units * Doker::pixelFactor);
}

static inline qreal toUnits(int pixels)
{
    return pixels / Doker::pixelFactor;
}

#endif // DOKER_H
